class AddNewsAttachments < ActiveRecord::Migration
  def change
    create_table :new_attachments, comment: "新闻附件表" do |t|
      t.string  :file_type,     comment: '文件类型'
      t.string  :file_url,      comment: '文件地址'
      t.integer	:news_id, 			comment: "新闻表ID"
      t.timestamps
    end

    add_column :news, :news_attachment_id, :integer
  end

end
